﻿<UserControl x:Class="InseSoft.Views.Controls.Toolbar"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:viewModels="clr-namespace:InseSoft.ViewModels" 
             mc:Ignorable="d" 
             d:DesignHeight="32" >
    <UserControl.Resources>
        <Style TargetType="Image">
            <Setter Property="Height" Value="24" />
            <Setter Property="Width" Value="24" />
        </Style>
    </UserControl.Resources>
    <Grid d:DataContext="{d:DesignInstance {x:Type viewModels:ICatalogEntityViewModel}}">
        <ToolBarTray HorizontalAlignment="Stretch">
            <ToolBar Band="1" BandIndex="1" HorizontalAlignment="Stretch">
                <Button  Command="{Binding Path=SaveCommand}">
                    <Image Source="..\images\toolbar\save.png" ToolTip="Guardar" />
                </Button>
                <Button Command="{Binding Path=DeleteCommand}">
                    <Image Source="..\images\toolbar\delete.png" ToolTip="Eliminar" />
                </Button>
                <Button Command="{Binding Path=NewCommand}">
                    <Image Source="..\images\toolbar\file.png" ToolTip="Nuevo"/>
                </Button>
                <Separator/>
                <Button Command="{Binding Path=ExitCommand}">
                    <Image Source="..\images\toolbar\up.png" ToolTip="Salir"/>
                </Button>
            </ToolBar>
        </ToolBarTray>
    </Grid>
</UserControl>
